package com.ss.common;

import java.util.HashMap;

/**
 * servie返回对象
 * @author Administrator
 * 
 */
public class MapResult extends HashMap<Object, Object>{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -2115630771854646666L;
	private boolean ifSuccess=false;//false,请求失败,结果不正确;
	private Object obj=null;//正确时,存储目标对象
	private String msg="";//错误信息

	public MapResult(){
		this.put("ifSuccess", ifSuccess);
		this.put("msg", msg);
		this.put("obj", obj);
	}
	
	 
	public String getMsg() {
		return msg;
	}


	public void setMsg(String msg) {
		this.msg = msg;
	}


	public boolean isIfSuccess() {
		return ifSuccess;
	}


	public void setIfSuccess(boolean ifSuccess) {
		this.ifSuccess = ifSuccess;
	}


	public Object getObj() {
		return obj;
	}


	public void setObj(Object obj) {
		this.obj = obj;
	}

}
